<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page import="java.util.List"%>
<%@ page import="com.pathpad.hibernate.PPUserCommonPad"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/front.css" media="screen, projection" rel="stylesheet"
	type="text/css" />

<title>PathPad</title>
<link
	href='http://fonts.googleapis.com/css?family=Arvo:regular,italic,bold,bolditalic'
	rel='stylesheet' type='text/css' />
</head>
<body>
<div id="container">
<div id="topnav" class="topnav">是否拥有帐号？ <a href="#" class="signin"><span>登录</span></a></div>
<fieldset style="display: none;" id="signin_menu">

<form method="post" id="signin" action="login.do"><label>用户名或邮箱地址</label>
<input id="userName" name="userName" title="用户名或邮箱地址" tabindex="4"
	type="text" />
<p></p>

<p><label>密码</label> <input id="password" name="password" value=""
	title="密码" tabindex="5" type="password" /></p>
<p class="remember"><input id="signin_submit" value="登录"
	tabindex="6" type="submit" /></p>
</form>
</fieldset>
</div>
<%
	List<PPUserCommonPad> indexWebsitesList = (List<PPUserCommonPad>) request
			.getAttribute("indexWebsitesList");
%>
<table align="center">
	<tr align="center">
		<td colspan="2">
		<h1>PathPad</h1>
		</td>
	</tr>

	<%
		for (PPUserCommonPad indexWebsitesListShow : indexWebsitesList) {
	%>
	<tr align="center">
		<td><a href="http://<%=indexWebsitesListShow.getWebID()%>"
			target="_blank"><%=indexWebsitesListShow.getWebName()%></a></td>
		<td>Web Site:</td>
	</tr>
	<%
		}
	%>
</table>
<script src="script/jquery-1.5.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
	$(function() {
		$(".signin").click(function() {
			$("fieldset#signin_menu").toggle();
			$(".signin").toggleClass("menu-open");
		});

		$("fieldset#signin_menu").mouseup(function() {
			return false
		});
		$(document).mouseup(function(e) {
			if ($(e.target).parent("a.signin").length == 0) {
				$(".signin").removeClass("menu-open");
				$("fieldset#signin_menu").hide();
			}
		});

	});
</script>
<script src="script/login.js" type="text/javascript"></script>

<script type="text/javascript">
	$(function() {
		$('#forgot_username_link').tipsy({
			gravity : 'w'
		});
	});
</script>
</body>
</html>

